import { useDynamicScript, loadComponent } from "./asyncLoadModules";

// 远程模块地址，加载js
const remoteUrl = "http://localhost:8080/remoteEntry.js";
await useDynamicScript(remoteUrl); // 远程模块地址
const { default: TestComponent } = await loadComponent(
  "federation",
  "./TestComponent.vue"
)();
const { default: TestUtil } = await loadComponent(
  "federation",
  "./TestUtil.ts"
)();
console.log(TestComponent, "TestComponent");
console.log(TestUtil, "TestUtil");
export { TestComponent, TestUtil };
